<%-- 
    Document   : SearchHotel
    Created on : Nov 2, 2011, 12:17:42 AM
    Author     : MrKoi
--%>

<%@page import="DAL.LocationBean"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page session="true" import="java.util.Collection" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="/WEB-INF/taglib139.tld" prefix="pg" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>East2West Tours and Travels</title>
    </head>
    <body>
        <%
             LocationBean lcbean=new LocationBean();
             Collection lction=lcbean.ListLocation();
             request.setAttribute("lc1",lction);
        %>
    <form action="ControllerSearchHotel" method="post">
        <table width="248px">
            <tr>
                <td>City:</td>
                <td>
                 <select name="namecity"  id="list">
                    <option value="" >----Choose----</option>
                    <c:forEach items="${lc1}" var="lction">
                       <option value="${lction.locationID}" >${lction.namecity}</option>
                    </c:forEach>
                  </select>
                </td>
            </tr>
            <tr>
                <td>Price:</td>
                <td>
                    From <input type="text" name="priceform" size="5" /> To
                    <input type="text" name="priceto" size="5"/>
                </td>
            </tr>
            <tr>
                <td colspan="2"><hr></td>
            </tr>
            <tr>
                <td colspan="2" align="center"><input type="submit" value="Search" /></td>
            </tr>
        </table>
    </form>   
    </body>
</html>
